set(libs server logger config sqlserver config httplib)

set_target_properties(
        ${libs}
        PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib64)

foreach (_ IN LISTS libs)
    target_link_libraries(PushServer PRIVATE
            ${_})
    target_compile_options(${_} PUBLIC -Wl,-rpath=.)
endforeach ()

set_target_properties(sqlserver PROPERTIES INSTALL_RPATH ".")

set_target_properties(server PROPERTIES INSTALL_RPATH ".")
